package com.zzt.log.controller;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description
 * User: panda
 * Date: 2025-02-25
 * Time: 13:26
 */
@RequestMapping("/log2")
@RestController
@Slf4j
public class LogController2 {


    @RequestMapping("/print")
    public String print(){
        System.out.println("sout打印日志");
        log.info("logger 打印日志");
        log.trace("logger trace...");
        log.debug("logger debug...");
        log.info("logger info...");
        log.warn("logger warn...");
        log.error("logger error...");
        return "打印日志";
    }
}
